package com.etouch.security.exception;

import lombok.Data;

@Data
public class ProjectException extends  RuntimeException{

    private Integer status;

    public ProjectException(){

    }
    public ProjectException(String msg){
        super(msg);
        this.status=500;
    }

    public ProjectException(Integer status, String msg){
        super(msg);
        this.status=status;
    }

    public ProjectException(ExceptionEnum e) {
        super(e.getMessage());
        this.status=Integer.valueOf(e.getStatus());
    }
    @Override
    public String getMessage() {
        return super.getMessage();
    }
}
